//
//  ResponseManager+MyWish.m
//  一点互助
//
//  Created by 张泊秋 on 16/9/2.
//  Copyright © 2016年 zhangboqiu. All rights reserved.
//

#import "ResponseManager+MyWish.h"
#import "WishesModel.h"

@implementation ResponseManager (MyWish)

+ (void)getUserWishInfoUserId:(NSString *)userId completionHandler:(RequestCompletion)completionHandler {
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    parameters[@"user_id"] = userId;
    [self startGetRequestWithURLString:kGetWishListURL parameters:parameters completionHandler:^(FBResponse *response) {
        if (response.success) {
            NSArray *modelArry = [WishesModel modelArrayWithDictionaryArr:response.resultValue];
            response.resultValue = modelArry;
            NSLog(@"我的愿望 = %@",response.resultValue);
        }else {
            
        }
        
        completionHandler(response);
        
    }];
}

@end
